package com.heima.apis.article.fallback;

import com.heima.apis.article.IArticleClient;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.enums.AppHttpCodeEnum;
import com.heima.model.article.dtos.ArticleCollectionDto;
import org.springframework.stereotype.Component;

/**
 * @author ybw
 * @version 1.0
 * @date 2021/12/15 18:18
 */
@Component
public class IArticleFallback implements IArticleClient {
  @Override
  public ResponseResult saveArticle(ArticleDto articleDto) {
    return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR);
  }
}
